package com.zego.wawaji.message.bean;

import com.zego.wawaji.base.data.BaseData;

import org.json.JSONObject;

/**
 * 全局通知消息体
 * Created by Su on 2018/3/13.
 */
public class TipsMsg extends BaseData {
    private String avatar;   // 头像
    private String nickName;  // 昵称
    private String content; // 内容

    @Override
    public void parseJson(String jsonStr) {
        JSONObject jsonObject = getJsonObject(jsonStr);

        this.avatar = jsonObject.optString("Avatar");
        this.nickName = jsonObject.optString("NickName");
        this.content = jsonObject.optString("Content");
    }

    public String getAvatar() {
        return avatar;
    }

    public String getNickName() {
        return nickName;
    }

    public String getContent() {
        return content;
    }
}
